<template>
	<view class="u-flex" @click="$u.route('/pages/shop/detail/detail',{id:like?item.goodsId:item.id})">
		<u-image style='flex-shrink: 0;' width="180rpx" height="180rpx" :show-loading='false' :src="item.src"></u-image>
		<view class="u-m-l-60">
			<view class="">
				{{item.name}}
			</view>
			<view class="u-font-22">
				{{item.remarks}}
			</view>
			<view class="" style="color: red;">
				￥{{item.price | getPrice}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"w-shop-item",
		props: {
			item: {
				type: Object,
				default: ()=>{
					return {}
				}
			},
			like:{
				type:Boolean,
				default:false
			}
		},
		data() {
			return {
				src: 'https://cdn.uviewui.com/uview/swiper/1.jpg'
			};
		}
	}
</script>

<style lang="scss">

</style>
